package com.sailfish.springbootdemo.controller.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.service.db1.BisLineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/bisLine")
@CrossOrigin
public class BisLineController {

    @Autowired
    private BisLineService bisLineService;

    @PostMapping("/getAllBisByLine")
    public Result getAllBisByLine(Integer lineId) {
        return bisLineService.getAllBisByLine(lineId);
    }

    @PostMapping("/submitBisData")
    public Result submitBisData(@RequestBody String data) {
        return bisLineService.submitBisData(data);
    }
}
